package com.autism.day01;

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("hello autism");

        int[] arr = {1, 3, 55, 2, 33};
        int max = arr[0];

        for (int i = 1; i < arr.length; i++) {
            if (arr[i] > max) {
                max = arr[i];
            }
        }

        System.out.println(max);

        int[] array = {1, 2, 3, 4, 5, 6};

        int temp = 0;

        for (int start = 0, end = array.length - 1;
             start < end;
             start++, end--) {
            temp = array[start];
            array[start] = array[end];
            array[end] = temp;
        }

        for (int i = 0; i < array.length; i++) {
            System.out.println(array[i]);
        }

        Student student = new Student();

        student.name = "autism";
        System.out.println(student.name);
        System.out.println(student.age);
        student.eat();
    }
}
